<!-- 用户服务协议和关于我们 -->
<template>
	<view class="my-content parse">
		<rich-text :nodes="list.content" ></rich-text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: {},
				type:''
			};
		},
		onLoad(option) {
			var type = '';
			if(option.type){
				type = option.type
			}
			this.getList(option.id,type)
		},
		onReady() {
			
		},
		methods:{
			async getList(id,type) {
				const res = await this.http("get", "/api/index/getList?id="+id+'&type='+type)
				this.list = res.data;
				console.log(this.list);
			},
		}
	}
</script>

<style lang="scss" scoped>
	.parse {
		margin-left: 2.5%;
		width: 95%;
		font-size: 32rpx;
		line-height: 1.8;
		padding: 8px;
	}
</style>